package com.class05.pojo;

import jakarta.validation.constraints.Min;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2023/12/8 9:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    @Min(10)
    private Integer id;
    @Length(min = 2,max = 6)
    private String name;
    @Range(max = 50,min = 10)
    private Integer age;
}
